<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="../css/base.css"/>
		<link rel="stylesheet" href="../css/button.css"/>
		<link rel="stylesheet" href="../css/dialog.css"/>
		<script src="../js/dialog.js"></script>
	</head>
	<body>
		
		<div class="main_body">
			<button class="button blue" onclick="tanchu()">点击弹窗</button>
		</div>
		
		<script>
			let dialog2=new dialog();
			dialog2.addButton('关闭',(e)=>{
				console.log('点到我了');
			});
			
			function tanchu(){
				dialog2.open();
			}
			
		</script>
	</body>
</html>